package com.wuwei.elearning.question.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 考试结果存储的表
 * </p>
 *
 * @author wuwei
 * @since 2024-01-18
 */
@TableName("test_result")
@Data
@ApiModel(value = "TestResult对象", description = "考试结果存储的表")
public class TestResult implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private LocalDateTime createTime;

    @ApiModelProperty("学员id")
    private Long account;

    @ApiModelProperty("学员姓名")
    private String username;

    @ApiModelProperty("得分")
    private Integer score;

    @ApiModelProperty("考试使用的时间")
    private LocalTime usedTime;

    @ApiModelProperty("某一组考卷的id，该字段和question_for_zhizhao的字段一样，为question_item表的主键")
    private Long questionItemId;//question_item表的主键

    private String title;//questionItem表的title
}
